package com.bbx.taxi.client.Task;

import android.app.Activity;

import com.bbx.androidapi.util.SharedPreUtil;
import com.bbx.androidapi.util.ToastUtil;
import com.bbx.api.sdk.model.base.BaseRequest;
import com.bbx.api.sdk.model.passanger.OrderDetailBuild;
import com.bbx.api.sdk.model.passanger.OrderWaitBuild;
import com.bbx.api.sdk.model.passanger.WeightOrVolumnBuild;
import com.bbx.api.sdk.model.passanger.Return.OrderDetails;
import com.bbx.api.sdk.model.passanger.Return.MyOrderList.Locations;
import com.bbx.api.sdk.model.passanger.Return.MyOrderList.MyOrderList;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.JsonBuild;
import com.bbx.api.sdk.net.passeger.conn.CancelReasonListNet;
import com.bbx.api.sdk.net.passeger.conn.OrderDetailNet;
import com.bbx.api.sdk.net.passeger.conn.OrderWaitNet;
import com.bbx.api.sdk.net.passeger.conn.WeightNet;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;
import com.bbx.taxi.client.Task.BaseAsyncTask;
import com.bbx.api.util.SharedPreEncryptUtil;
import com.bbx.taxi.client.MyApplication;
import com.bbx.taxi.client.R;
import com.bbx.taxi.client.Task.DetailsOfGoodsTask.OnFinishListener;

/** 
 * @Path com.bbx.taxi.client.Task.MyOrderWaitTask.java
 * @Author 严旭文
 * @Date 2016-6-13 下午5:29:10
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 订单详情
 */
public class OrderDetailTask extends BaseTask{
	  public DATA_TYPE TYPE=DATA_TYPE.ORDERDETAIL;
	    private OrderDetailBuild mOrderDetail;
		public OrderDetailTask(Activity context,String order_id) {
			super(context);
			MyApplication mApplication=MyApplication.getInstance();
			mOrderDetail= new OrderDetailBuild(context);
			mOrderDetail.uid = mApplication.getUid();
			mOrderDetail.access_token = mApplication.getToken();
			mOrderDetail.order_id = order_id;
		}
		@Override
		public boolean isShow() {
			return true;
		}

		@Override
		public boolean isReturnString() {
			return false;
		}
		@Override
		public boolean condition() {
			// TODO Auto-generated method stub
			return true;
		}
		@Override
		public void request() {
			setType(TYPE,mOrderDetail);
		}
		@Override
		public void success(int status,Object object) {
			// TODO Auto-generated method stub
			
		}
		@Override
		public void failed(int status, String msg,String message) {
			ToastUtil.showToast(context, R.string.no_network);
		}
		@Override
		public BaseNetwork getBaseNetwork() {
			return new OrderDetailNet(context);
		}

}
